<?php
namespace Admin\Controller;
use Think\Controller;
class myController extends Controller{
	/**
	 * 判断session是否登录,防止翻墙
	 */
	public function _initialize(){
		if(!isset($_SESSION['username']) && $_SESSION['id']==0){
			$this->success('请先登录',U('Login/login'),2);exit;
		}
	}
}